package GUI.ManagerEmployee;

import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.JLabel;
import javax.swing.JButton;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class GetSaleOperationPnl extends JPanel {
	public JTextField txtName;
	public JTextField texFiledId;
	public JButton btnGetSale;

	/**
	 * Create the panel.
	 */
	public GetSaleOperationPnl() {
		setLayout(null);
		
		txtName = new JTextField();
		txtName.setBounds(90, 21, 95, 25);
		add(txtName);
		txtName.setColumns(10);
		
		JLabel lblName = new JLabel("Name:");
		lblName.setBounds(27, 21, 47, 34);
		add(lblName);
		
		JLabel lblId = new JLabel(" id:");
		lblId.setBounds(27, 78, 46, 14);
		add(lblId);
		
		texFiledId = new JTextField();
		texFiledId.setBounds(90, 70, 95, 25);
		add(texFiledId);
		texFiledId.setColumns(10);
		
		 btnGetSale = new JButton("GetSale");
		btnGetSale.setBounds(90, 240, 95, 34);
		add(btnGetSale);

	}
	public void addController(ActionListener controller){
		System.out.print("get sale pnl->Add controller");
		btnGetSale.addActionListener(controller);
	}
}
